from collections import deque

queue_and_stack = deque()
queue_and_stack.append(1)
queue_and_stack.append(2)
queue_and_stack.append("hello")
print(queue_and_stack)
queue_and_stack[0] = 2

print(queue_and_stack.popleft())
print(queue_and_stack)
print(queue_and_stack.pop())
print(queue_and_stack)
